home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / System7 tools / Frontier / Frontier SDK 2.1 / Toolkits / Applet Toolkit / applettextedit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-11  |  2.3 KB  |  106 lines  |  [TEXT/KAHL]

  1.  
  2. /*© Copyright 1989,1990 UserLand Software, Inc.  All Rights Reserved.*/
  3.  
  4.  
  5. #define texteditinclude /*so other includes can tell if we've been loaded*/
  6.  
  7.  
  8. #ifndef appletdefsinclude
  9.  
  10.     #include <appletdefs.h>
  11.     
  12. #endif
  13.  
  14.  
  15.  
  16. #define textvertinset 2
  17. #define texthorizinset 2
  18. #define mintextwidth 25
  19.  
  20.  
  21. typedef struct tyeditrecord {
  22.     
  23.     TEHandle macbuffer;
  24.     
  25.     boolean flwindowbased; /*set this true if the text is displayed in its own window*/
  26.     
  27.     boolean flscrolled; /*true if a clicking operation resulted in a scroll*/
  28.     
  29.     short vertcurrent, horizcurrent; /*allows app to maintain scrollbars*/
  30.     } tyeditrecord, *ptreditrecord, **hdleditrecord;
  31.     
  32.  
  33. void editgetsize (Handle, short *, short *);
  34.  
  35. boolean editnewbuffer (Rect, boolean, bigstring, hdleditrecord *);
  36.  
  37. void editsetrect (hdleditrecord, Rect);
  38.  
  39. void editdispose (hdleditrecord);
  40.     
  41. void editidle (hdleditrecord);
  42.     
  43. void editautoscroll (hdleditrecord);
  44.  
  45. void editpaste (hdleditrecord);
  46.  
  47. void editcut (hdleditrecord);
  48.  
  49. void editcopy (hdleditrecord);
  50.  
  51. boolean editgettext (hdleditrecord, bigstring);
  52.  
  53. void editkeystroke (char, hdleditrecord);
  54.  
  55. void editclick (Point, boolean, hdleditrecord);
  56.  
  57. void editcleartextchanged (hdleditrecord);
  58.  
  59. void editupdate (hdleditrecord hbuffer);
  60.  
  61. void editupdateport (hdleditrecord, Rect, WindowPtr);
  62.  
  63. void editactivate (hdleditrecord, boolean);
  64.  
  65. void editsetwordwrap (hdleditrecord, boolean);
  66.  
  67. void editselectall (hdleditrecord);
  68.  
  69. boolean editpointinrect (Point, hdleditrecord);
  70.  
  71. boolean editreplace (bigstring, hdleditrecord);
  72.  
  73. void editsetjustification (tyjustification, hdleditrecord);
  74.  
  75. void editdrawtext (bigstring, Rect, tyjustification);
  76.  
  77. boolean editgettexthandle (hdleditrecord, Handle *);
  78.  
  79. void editdrawtexthandle (Handle, Rect, tyjustification);
  80.  
  81. boolean editnewbufferfromhandle (Rect, boolean, Handle, hdleditrecord *);
  82.  
  83. boolean editsettexthandle (hdleditrecord, Handle);
  84.  
  85. boolean editgettexthandlecopy (hdleditrecord, Handle *);
  86.  
  87. boolean editreplacehandle (Handle, hdleditrecord);
  88.  
  89. boolean editgetselectedtexthandle (hdleditrecord, Handle *);
  90.  
  91. void editgetbuffersize (hdleditrecord, short *, short *);
  92.  
  93. boolean edithaveselection (hdleditrecord);
  94.  
  95. boolean editscroll (hdleditrecord, short, short);
  96.  
  97. void editscrollto (hdleditrecord, short, short);
  98.  
  99. boolean editgetselection (hdleditrecord, short *, short *);
  100.  
  101. boolean editsetselection (hdleditrecord, short, short);
  102.  
  103. void editsetfont (hdleditrecord, short, short);
  104.  
  105.  
  106.